package com.ijunfu.spring.primary._01_primary_bean.config;

import com.ijunfu.spring.primary._01_primary_bean.BeanPrimaryMain;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/8 13:40
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@SpringBootTest(classes = BeanPrimaryMain.class)
class MyConfigTest2 {

    @Resource
    private String author;

    @Test
    void author() {
        System.out.println(author);

        assertEquals(1,1);
    }

    @Resource
    private String author2;

    @Test
    void author_2() {
        System.out.println(author2);

        assertEquals(1,1);
    }
}